package ClassTest;

import java.lang.reflect.Array;

/**
 * Created by 春旺 on 2017/9/24.
 */
public class ArraySum {
    public int Sum (int[][] a){
        int sum = 0;
        for (int i = 0;i < a.length;i++){
            for (int j = 0; j < a[i].length;j++){
                sum = sum + a[i][j];
            }
        }
        return sum;
    }
}
